<%--
  Created by IntelliJ IDEA.
  User: asus
  Date: 2023/5/6
  Time: 13:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>前端页面跳转测试</title>
</head>
<body>
<p1>这是b页面</p1>
<button id="toc">点击跳转到c页面</button>
<button id="tohome">点击跳转到home页面</button>
</body>
<script>
    const toc = document.getElementById("toc");
    const tohome = document.getElementById("tohome");
    toc.addEventListener("click",function () {
        window.location.href="c.jsp?name=wuhu"
    })
    tohome.addEventListener("click",function () {
        window.location.href="../home.jsp"
    })
</script>
</html>
